package com.alex.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = {"name", "age"}) // id相等即为相等
public class Person {

    private Long id;

    private String name;

    private Integer age;
}
